package com.epta.service;

import com.epta.mapper.RolePermissionMapper;
import com.epta.pojo.RolePermission;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Set;

/**
 * Created by Administrator on 2017/10/13 0013.
 */
@Service
public class RolePermissionService extends BaseService<RolePermission> {

    @Autowired
    RolePermissionMapper rolePermissionMapper;

    public Set<String> findPermissionByUserId(int id){
        return rolePermissionMapper.findPermissionByUserId(id);
    }

}
